package com.jishaokang.dao;

import com.jishaokang.model.dto.Message;
import com.jishaokang.model.vo.MessageVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@Repository
public interface MessageDAO {

    int selectTotalByReceiverId(Message message);

    List<MessageVO> selectByReceiverId(Message message);

    MessageVO selectByMessageId(Message message);

    void updateStateByMessageId(Message message);

    void deleteByMessageId(Message message);

    void updateStatesByReceiverId(Message message);

    void deleteByReceiverIdAndState(Message message);

    int selectTotalUnread(Message message);

    void insert(Message message);
}
